//
//  ICMAppointmentPreviewViewController.m
//  ICrEAM
//
//  Created by Cty on 2016/11/09.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICMAppointmentPreviewViewController.h"
#import "ICMAppointmentPreviewView.h"

@interface ICMAppointmentPreviewViewController ()

@end

@implementation ICMAppointmentPreviewViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIScrollView *previewList = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight - NavBarAndStatusHeight)];
    ICMAppointmentPreviewView *preview = [[ICMAppointmentPreviewView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, ActualHeight(2500))];
    preview.basicInfoModel = self.basicInfoModel;
    preview.basicOtherModel = self.basicOtherModel;
    preview.partsTopModel = self.partsTopModel;
    preview.maintenancesModel  = self.maintenancesModel;
    preview.partsArrayModel = self.partsArrayModel;
    preview.activityModel = self.activityModel;
    [preview setUpChildView];
    preview.frame = CGRectMake(0, 0, ScreenWidth, preview.endFrame.origin.y+preview.endFrame.size.height+ActualHeight(10));
    previewList.contentSize = preview.frame.size;
    previewList.pagingEnabled = NO;
    [previewList addSubview:preview];
    
    
    [self.view addSubview:previewList];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
